//
//  LCRankTableViewCell.m
//  lechuang
//
//  Created by Mr_hi on 2023/4/11.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import "LCRankTableViewCell.h"
#import "LCRankingModel.h"

@interface LCRankTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *thumbView;

@property (weak, nonatomic) IBOutlet UILabel *nickNameLb;

@property (weak, nonatomic) IBOutlet UILabel *totalAmountLb;

@end

@implementation LCRankTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setRanking:(LCRankingModel *)ranking {
    _ranking = ranking;
    [self.thumbView sd_setImageWithURL:[LCFunction XWX_URLImg:ranking.thumb] placeholderImage:kGetImage(@"lc_mine_user_head")];
    self.nickNameLb.text = ranking.nickname;
    self.totalAmountLb.text = kFORMAT(@"累计收益：￥%@元",ranking.total);
    self.rankNumLb.text = ranking.rownumber;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
